<template>


  <div>
    <el-menu
        style="width: 200px"
        default-active="2"
        class="el-menu-vertical-demo"
    >

    </el-menu>
  </div>

</template>

<script>
import FileManagement from "@/views/FileManagement";
import request from "@/utils/request";
export default {

  name: "Aside",
  components: {FileManagement},
  methods: {
    findByType(type) {
      FileManagement.methods.findByType(type)
    },
    list() {
      // this.form.send = this.$route.query.componyName
      // request.get("/api/findFurnsByName",{
      //   params:{
      //     pageNum: this.currentPage,
      //     pageSize: this.pageSize
      //   }
      // }).then(res => {
      //   this.tableData = res.extend.pageInfo.list
      //   this.total = res.extend.pageInfo.total
      // })

      request.get("/api/listFileByNameOrType", {
        params: {//指定请求携带的参数
          pageNum: this.currentPage,
          pageSize: this.pageSize,
          search: this.search,
          type: this.type,
          componyName: this.componyName
        }
      }).then(res => {//处理返回的分页信息
        console.log("res => ", res)
        console.log("pageInfo=>", res.data.records)
        // this.tableData = res.extend.files
        this.tableData = res.data.records
        this.total = res.data.total
        // this.type = ''
        // this.search =''
      })


    }
  }
}
</script>

<style scoped>

</style>